package test.study.kits.excel.easyexcel._3_fill;

import cn.hutool.core.util.RandomUtil;
import com.google.common.collect.Lists;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Builder
@Data
public class FillBean {
    private Long id;
    private String name;
    private int age;

    public static List<FillBean> dataLt(int size) {
        List<FillBean> dataLt = Lists.newArrayList();
        Long seq = 10001L;
        for (int i = 0; i < size; i++) {
            dataLt.add(FillBean.builder()
                    .id(seq++)
                    .name(String.format("张 %s", i + 1))
                    .age(RandomUtil.randomInt(20, 80))
                    .build());
        }
        return dataLt;
    }
}
